package com.lk.springboot.vo;

/**
 * @author lk
 * @date 2020/1/8 0008 16:21
 * @description: 返回的状态码
 */
public enum ResultCode {

    SUCCESS("0000", "处理成功"),
    FAILD("0002", "签名验证失败"),
    API_PARAMETER_ERROR("0004", "参数错误"),
    FAILD_LOGIN("0005", "登陆失败,或超时"),
    UNEXPECTED_ERROR("9999", "未知错误"),
    REFULSE_REQUEST("7777", "拒绝请求"),
    DONNOT_ENOUGH("7878", "不足"),
    HAD("8888", "已经完成");

    private String code;
    private String message;

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}